﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace DHM.Model
{
    /// <summary>
    /// 当前模块
    /// </summary>
    public enum CommentModule
    {
        MHC,//摩诃池
        SWF,//蜀王府
        SZYZ,//数字营造
        AR ,//AR书签卡
        SDMS//蜀都民俗
    }
    /// <summary>
    /// 用户评论表格
    /// </summary>
    [SugarTable("UserComment")]
    public class UserComment : BaseID
    {
        /// <summary>
        /// 用户评论内容
        /// </summary>
        [MaxLength(50)]
        public string CommentContent { get; set; }
        /// <summary>
        /// 用户评论时间
        /// </summary>
        public DateTime? CommentTime { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserAvatar { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 当前评论的模块
        /// </summary>
        public CommentModule CommentModule { get; set; }
    }
}
